
import com.sun.lwuit.Dialog;
import com.sun.lwuit.Display;
import com.sun.lwuit.plaf.UIManager;
import com.sun.lwuit.util.Resources;
import ui.*;


public class Main extends javax.microedition.midlet.MIDlet {

    public static Resources mainResource;

    protected void startApp() {
        Display.init(this);
        //set the theme
        try {
            mainResource = Resources.open("/ui/theme.res");
            UIManager.getInstance().setThemeProps(
                    mainResource.getTheme(
                    mainResource.getThemeResourceNames()[0]));

            ListTest form = new ListTest(this);
            form.show();

        } catch (Exception ex) {
            ex.printStackTrace();
            Dialog.show("Error", ex.toString(), "OK", "");
        }
    }
    
    protected void pauseApp() {
    }

    protected void destroyApp(boolean arg0) {
    }
}
